$(function(){

    $('.needs-item').mouseover(function(){
        $(this).addClass('shadowClass');
    })
    $('.needs-item').mouseout(function(){
        $(this).removeClass('shadowClass');
    })

})


function JobsSearch (){

    $("#needs-lists-keyword").keydown(function(e){
        var e = e || event,
            keycode = e.which || e.keyCode || e.charCode;
        if (keycode==13) {
            var kw = $("#needs-lists-keyword").val(),areaid = $("#jobs-lists-area").val(),industry = $("#jobs-lists-industry").val(),salary = $("#jobs-lists-salary").val(),gznx = $("#jobs-lists-gznx").val(),degree = $("#jobs-lists-degree").val(),sort = $("#jobs-lists-sort").val();
            var url = "/talent?kw="+kw+"&areaid="+areaid+"&industry="+industry+"&salary="+salary+"&gznx="+gznx+"&degree="+degree+"&sort="+sort;
            window.location.href = url;
            return false;
        }
    });

    $("#needs-lists-searchbtn").click(function(){
        var kw = $("#needs-lists-keyword").val(),areaid = $("#jobs-lists-area").val(),industry = $("#jobs-lists-industry").val(),salary = $("#jobs-lists-salary").val(),gznx = $("#jobs-lists-gznx").val(),degree = $("#jobs-lists-degree").val(),sort = $("#jobs-lists-sort").val();
        var url = "/talent?kw="+kw+"&areaid="+areaid+"&industry="+industry+"&salary="+salary+"&gznx="+gznx+"&degree="+degree+"&sort="+sort;
        window.location.href = url;
        return false;
    });

}
